import requests
from pprint import pprint

user_number = 'U001'

r = requests.put('http://localhost:5000/user/{}/status'.format(user_number), json={
    'status': '离京',
    'comment': '',
    'health': '良好',
    'health_detail': '',
    'temperature_morning': 36.5,
    'temperature_middle': 36.5,
    'temperature_night': 36.5,

    'has_co_isolation_14': False,

    'isolation_need_medical': "",
    'isolation_need_life': '',
    'isolation_need_other': '',

    'exit_reason': '休假',
    'target_address': '南昌市的是个垃圾啊时代峻峰阿斯蒂芬就',
    'is_hubei': False,
    'exit_date': '20201214',
    'return_date': '20201224',
    'return_traffic': 'G2018',
    'exit_detail': '暗示领导看风景拉时代峻峰阿萨德六块腹肌',
    'isolation_address': '默认',

    # for outside
    'current_address': '测试',
    'plan_return_date': '20200123',
    'plan_traffic': 'CZ2019',

    'persons': [{
        'name': 'A',
        'relation': '父亲',
        'health': '良好',
        'health_detail': '',
        'temperature': 36.5,
    }, {
        'name': 'B',
        'relation': '子女',
        'health': '良好',
        'health_detail': '',
        'temperature': 36.5,
    }]
}).text
pprint(r)
